<?php

class DLinkPager extends CLinkPager {

    public $header  = '';
    public $cssFile = false;
    public $htmlOptions = array(
        'class' => 'pagination'
    );
    public $firstPageLabel = '';
    public $lastPageLabel = '';
//    public $prevPageLabel = '≪';
//    public $nextPageLabel = '≫';
    public $prevPageLabel = '<span class="icons16 icons16_1b"></span>';
    public $nextPageLabel = '<span class="icons16 icons16_1a"></span>';
    public $maxButtonCount = 5;
    
    protected function createPageButton($label, $page, $class, $hidden, $selected) {
        if ($hidden || $selected)
            $class.=' ' . ($hidden ? self::CSS_HIDDEN_PAGE : self::CSS_SELECTED_PAGE);
        return '<li class="' . $class . '">'
            . CHtml::link($label, $this->createPageUrl($page),
            array('class' => 'link lnColor5')
        ) . '</li>';
    }
    
}